<%@ page import="com.user.entity.Users" %>
<!DOCTYPE html>
<html lang="zh-cn">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>更改用户</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="../assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="../assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="../assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="../assets/css/amazeui.datatables.min.css"/>
    <link rel="stylesheet" href="../assets/css/app.css">
    <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>

</head>

<body data-type="login">
<script src="../assets/js/theme.js"></script>
<div class="am-g tpl-g">
    <!-- 风格切换 -->
    <div class="tpl-skiner">
        <div class="tpl-skiner-toggle am-icon-cog">
        </div>
        <div class="tpl-skiner-content">
            <div class="tpl-skiner-content-title">
                选择主题
            </div>
            <div class="tpl-skiner-content-bar">
                <span class="skiner-color skiner-white" data-color="theme-white"></span>
                <span class="skiner-color skiner-black" data-color="theme-black"></span>
            </div>
        </div>
    </div>

    <div class="tpl-login">
        <div class="tpl-login-content">
            <div class="tpl-login-title">更改用户信息</div>
            <span class="tpl-login-content-info">
                  更改用户信息
              </span>


            <form class="am-form tpl-form-line-form" action="/ChangeUserInfoServlet">


                <input type="hidden" class="tpl-form-input" name="id" placeholder="用户id"
                       value="${requestScope.user.id}">

                <div class="am-form-group">
                    <p class="tpl-login-title">用户名</p>
                    <input type="text" class="tpl-form-input" name="username" placeholder="用户名"
                           value="${requestScope.user.username}">

                </div>

                <div class="am-form-group">
                    <p class="tpl-login-title">密码</p>

                    <input type="text" class="tpl-form-input" name="password" placeholder="密码"
                           value="${requestScope.user.password}">
                </div>

                <div class="am-form-group">
                    <p class="tpl-login-title">学校</p>

                    <input type="text" class="tpl-form-input" name="schoolname" placeholder="学校"
                           value="${requestScope.user.schoolname}">
                </div>


                <div class="am-form-group">
                    <div><font color="red">${requestScope. msg}</font></div>

                    <button type="submit"
                            class="am-btn am-btn-primary  am-btn-block tpl-btn-bg-color-success  tpl-login-btn">提交
                    </button>
                    <a href="/UserListServlet">

                        <input type=button value="返回页面"
                               class="am-btn am-btn-primary  am-btn-block tpl-btn-bg-color-success  tpl-login-btn">

                    </a>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="http://cdn.bootcss.com/amazeui/2.7.2/js/amazeui.min.js"></script>
<script src="assets/js/app.js"></script>

</body>

</html>